home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / isnodeup.zip / ISNODEUP.DOC < prev    next >
Text File  |  1993-04-03  |  2KB  |  91 lines

  1.  
  2.  
  3.                                 IsNodeUp
  4.                               By Mike King
  5.  
  6. This program is freeware.  IsNodeUp tests for active/inactive PCBoard
  7. 15.0 nodes from a batch file.  It will return with an error level equal
  8. to the first active node encountered or zero if all requested nodes are
  9. down.  IsNodeUp should function correctly on systems with up to 2,000
  10. nodes.
  11.  
  12. Usage:
  13.  
  14. IsNodeUp <path ONLY! to USERNET.XXX> <node to check> [<node to check>]
  15.  
  16. Note that IsNodeUp will test from the end of the list of node backwards
  17. to the beginning.
  18.  
  19. IsNodeUp C:\PCB\MAIN 1 3 7
  20.  
  21. will first test node 7, then node 3 and lastly node 1.
  22.  
  23. As a practical example, lets assume that node 3 is your mail server.  At
  24. 2:30am, you need to call a number of host systems to relay mail.  The
  25. mail retrieval normally takes approximately 2 hours.  At 4:30 am, you
  26. want the rest of the nodes down to pack the message base.  Your node 3
  27. 2:30am event file might resemble following.
  28.  
  29. -----------------------------------------------------------------------
  30. rem                     exchange mail
  31.  
  32. rem get RIME mail
  33. call rimepost.bat
  34. rem get ILink mail
  35. call lowmem ilinkhub
  36. rem etc.
  37.  
  38. rem                     wait for other nodes before packing
  39.  
  40. rem pause loop routine to pause for 5 minutes
  41.  
  42. :Pause
  43. DvPause 5
  44.  
  45. rem check node status
  46. IsNodeUp c:\pcb\main 1 2 4 5 6 7 8 9 10 11
  47. if errorlevel 1 goto Pause
  48.  
  49. call packmsgs.bat
  50.  
  51. board3
  52. ----------------------------------------------------------------------
  53.  
  54. Your 4:30am event file for the other nodes might resemble the following:
  55.  
  56. ----------------------------------------------------------------------
  57. rem ensure that the mail server is down
  58.  
  59. :Pause1
  60. DvPause 1
  61.  
  62. IsNodeUp 3
  63. if errorlevel 3 goto Pause1
  64.  
  65. echo Message Packing Event
  66.  
  67. rem wait for node 3 to finish packing the message base
  68.  
  69. :Pause2
  70. DvPause 5
  71.  
  72. IsNodeUp 3
  73. if errorlevel 3 goto Exit
  74. goto Pause2
  75.  
  76. rem node 3 is finished
  77. :Exit
  78. boardxx
  79. ----------------------------------------------------------------------
  80.  
  81. Comments, suggestions, $$$ are welcome.  You can contact the author at:
  82.  
  83. Mike King
  84. IDC BBS
  85. PO Box 4020
  86. Alameda, CA 94501
  87.  
  88. BBS:  (510) 865-7115    1200/2400 baud (USR HST 14.4k)
  89.       (510) 814-8097    9600+ baud     (USR DS v.32bis/HST 14.4k)
  90.  
  91.